package com.syl.orm.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description: es配置类
 * @author: YunLong
 * @date: 2022-08-31 09:16
 **/
@ConfigurationProperties(prefix = EsbatisProperties.ESBATIS_PREFIX)
public class EsbatisProperties {

    public static final String ESBATIS_PREFIX = "esbatis";

    /**
     * jdbc:es://http://192.168.16.128:9200
     */
    private String address;
    /**
     * elastic
     */
    private String username;
    /**
     * *****
     */
    private String password;
    /**
     * classpath*:mapper/*.xml
     */
    private String esMapperLocations;

    /**
     * com.syl.dao
     */
    private String esBaseDaoPackage;


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static String getEsbatisPrefix() {
        return ESBATIS_PREFIX;
    }

    public String getEsMapperLocations() {
        return esMapperLocations;
    }

    public void setEsMapperLocations(String esMapperLocations) {
        this.esMapperLocations = esMapperLocations;
    }

    public String getEsBaseDaoPackage() {
        return esBaseDaoPackage;
    }

    public void setEsBaseDaoPackage(String esBaseDaoPackage) {
        this.esBaseDaoPackage = esBaseDaoPackage;
    }
}
